const Layout = () => import('@/layout/index.vue')
export default [
  {
    path: '/daily',
    name: 'Dailystatistics',
    meta: { title: '平台数据统计',icon:'Histogram' },
    component: Layout,
    children: [
      {
        path: '/daily/index',
        name: 'Dailyindex',
        component: () => import('@/views/Dailystatistics/dailyindex.vue'),
        meta: { title: '每日平台概况', role: ['Dailystatistics_index']}
      },
      {
        path: '/daily/room',
        name: 'Dailyroom',
        component: () => import('@/views/Dailystatistics/dailyroom.vue'),
        meta: { title: '历史房间消费统计', role: ['Dailystatistics_room']}
      },
      {
        path: '/daily/roomdang',
        name: 'Dailyroomdang',
        component: () => import('@/views/Dailystatistics/dailyroomdang.vue'),
        meta: { title: '平台流水明细', role: ['Dailystatistics_room2']}
      },
      {
        path: '/daily/roomhour',
        name: 'Dailyroomhour',
        component: () => import('@/views/Dailystatistics/dailyroomhour.vue'),
        meta: { title: '房间分时流水', role: ['Dailystatistics_roomhour']}
      },
      {
        path: '/daily/user',
        name: 'DailyroomUser',
        component: () => import('@/views/Dailystatistics/dailyRoomUser.vue'),
        meta: { title: '房间用户消费流水', role: ['Dailystatistics_user']}
      },
      {
        path: '/daily/statistics',
        name: 'DailyroomStatistics',
        component: () => import('@/views/Dailystatistics/statistics.vue'),
        meta: { title: '当月收入支出总览', role: ['account_accountstatistics']}
      },
      {
        path: '/daily/gameplaySumStatList',
        name: 'DailyGameplaySumStatList',
        meta: { title: '幸运活动数据总览', role: ['activity_gameplaySumStatList'] },
        component: () => import('@/views/Dailystatistics/gameplaySumStatList.vue'),
      },
    ],
  },
  {
    path: '/accounts',
    name: 'Accounts',
    meta: { title: '平台财务管理',icon:'Management' },
    component: Layout,
    children: [
      {
        path: '/accounts/withdrawAudit',
        name: 'AccountsWithdrawAudit',
        component: () => import('@/views/accounts/withdrawAudit/index.vue'),
        meta: { title: '提现审核列表', role: ['account_index']}
      },
      {
        path: '/accounts/rechargeBlack',
        name: 'AccountsRechargeBlack',
        component: () => import('@/views/accounts/rechargeBlack/index.vue'),
        meta: { title: '充值限制用户', role: ['diamondrecord_rechargeBlack']}
      },
      {
        path: '/accounts/shortRechargeBlack',
        name: 'AccountsShortRechargeBlack',
        component: () => import('@/views/accounts/shortRechargeBlack/index.vue'),
        meta: { title: '临时充值限制用户', role: ['diamondrecord_shortRechargeBlack']}
      },
      {
        path: '/accounts/fund',
        name: 'AccountsFund',
        component: () => import('@/views/accounts/fund/index.vue'),
        meta: { title: '平台送/扣钻石记录', role: ['diamondrecord_index']}
      },
      {
        path: '/accounts/userWalletStatList',
        name: 'userWalletStatList',
        component: () => import('@/views/accounts/userWalletStatList/index.vue'),
        meta: { title: '用户资产明细表', role: ['diamondrecord_userWalletStatList']}
      },
      {
        path: '/finance/deductGold',
        name: 'DeductGold',
        component: () => import('@/views/finance/deductGold/index.vue'),
        meta: { title: '消除金币', role: ['kk_xiaochu'] }
      },
      {
        path: '/finance/sendGold',
        name: 'SendGold',
        component: () => import ('@/views/finance/sendGold/index.vue'),
        meta: { title: '赠送金币', role: ['kk_zengsong'] }
      },
      {
        path: '/finance/payRule',
        name: 'payRule',
        component: () => import ('@/views/finance/payRule/index.vue'),
        meta: { title: '充值设置', role: ['payRule'] }
      }
    ],
  },
]
